package labb3.FileHandling;

import labb3.Media;

import java.io.IOException;
import java.util.ArrayList;

/**
 * Interface so realizing classes can save Media to a file.
 *
 * @author Mikko Puustinen
 * @version 0.1, 2007-okt-14
 */
public interface CollectionSaver {
    /**
     * Save the Media provided in the ArrayList.
     *
     * @param media Media to save.
     *
     * @throws IOException if error occurs while saving to the file.
     */
    public void saveCollection(ArrayList<Media> media) throws IOException;
}
